package com.zhdl.modules.demo.DCHTProcess;

//import com.zhdl.modules.common.test.ProcessDo;
import com.zhdl.common.util.BeanUtils;
import com.zhdl.hardware_contact.hardware_web.service.ProcessSportService;
import com.zhdl.modules.process.common.ProcessDo;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MotorRelRunDo implements ProcessDo {
    private final String name;
    private final float speed;
    private final float distance;
    public MotorRelRunDo(String name, float speed,float distance){
          this.name = name;
          this.speed = speed;
          this.distance = distance;
    }
    @Override
    public void doSomeThing() {
        ProcessSportService processSportService = BeanUtils.getBean("ProcessSportService");
        log.info(name+"相对运动速度:"+speed + "---距离:"+distance);
    }
}
